<%@ page import="com.bean.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/22
  Time: 15:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>成功页面</title>
    <style>
        div {
            width: 400px;
            margin: 1em auto;
            background: #eee;
            padding: 2em;
        }

        p {
            color: chocolate;
        }
    </style>
</head>
<body>
<div>
    登录成功！！！
    <p>
        <%
            User user = (User) session.getAttribute("user");
            out.println("欢迎您：" + user.getUsername());
        %>
        <a href="${pageContext.request.contextPath}/logout">注销</a>
    </p>
</div>
</body>
</html>
